
var mongoose         = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var schema = new mongoose.Schema({
   title  : String,
   content: String,
   cateId : mongoose.Schema.ObjectId,
   name   : String,
   time   : String,
   reply:String
});

schema.plugin(mongoosePaginate);

var News = mongoose.model('News',  schema);

module.exports = News;